/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.time.LocalTime;
import java.util.Date;

/**
 *
 * @author alex
 */
public class Funcion {
    
    private Date horaEntrada;
    
    private Pelicula pelicula;
    
    private Sala sala;

    public Date getHoraEtrada() {
        return horaEntrada;
    }

    public void setHoraEtrada(Date horaEtrada) {
        this.horaEntrada = horaEtrada;
    }

    public Pelicula getPelicula() {
        return pelicula;
    }

    public void setPelicula(Pelicula pelicula) {
        this.pelicula = pelicula;
    }

    public Sala getSala() {
        return sala;
    }

    public void setSala(Sala sala) {
        this.sala = sala;
    }

    public Funcion() {
    }

    public Funcion(Date horaEntrada, Pelicula pelicula, Sala sala) {
        this.horaEntrada = horaEntrada;
        this.pelicula = pelicula;
        this.sala = sala;
    }

    @Override
    public String toString() {
        return " Funcion: " + this.pelicula + " Sala: " + this.sala + " Hora: " + this.horaEntrada;
    }
    
    
    
    
}
